package org.mspring.mlog.web.module.stat.factory;

import javax.servlet.http.HttpServletRequest;

import org.mspring.mlog.ServiceFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 博客点击量
 * 
 * @author Gao Youbo
 * @since 2012-11-16
 */
public class BlogClickStatCmd extends AbstractStatCmd {
    private static final Logger log = LoggerFactory.getLogger(BlogClickStatCmd.class);

    @Override
    public boolean execute(HttpServletRequest request) {
        // TODO Auto-generated method stub
        try {
            ServiceFactory.getStatService().updateClickCount();
            return true;
        } catch (Exception e) {
            // TODO: handle exception
            log.error("update blog click error.", e);
            return false;
        }
    }

}
